<template>
  <div>
    <!-- 路由占位符 -->
    <router-view></router-view>
    <!-- taber导航栏 -->
    <van-tabbar route>
      <van-tabbar v-model="active">
        <van-tabbar-item to='/home' icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item to='/user' icon="user-o">我的</van-tabbar-item>
      </van-tabbar>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      active: 0
    }
  }
}
</script>

<style lang="less" scoped></style>
